package cqrtplm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cqrtplm.dto.KnowledgePushDTO;
import cqrtplm.dto.RtCustomerNodeInfoDTO;
import cqrtplm.entity.RtCustomerNodeInfoDO;
import cqrtplm.entity.RtCustomerNodeInfoLinkDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;


@Mapper
public interface RTKnowledgePushMapper extends BaseMapper<RtCustomerNodeInfoDO> {


    void updateKnowledgeInfo(RtCustomerNodeInfoDO customerNodeInfoDO);

    List<RtCustomerNodeInfoDO> queryByCustomer(String customer);

    void batchInsert(@Param("customerNodeList") List<RtCustomerNodeInfoLinkDO> customerNodeList);

    void insertKnowledgeInfo(RtCustomerNodeInfoDO customerNodeInfo);

    void deleteByOid(BigInteger oid);

    void batchDeleteWithLink(@Param("oids") List<String> oids);

    List<RtCustomerNodeInfoDO> queryByCustomerText(String customer);

    String selectContentById(BigInteger oid);

    void deleteCustomerById(@Param("OIDs") List<String> OIDs);

    List<RtCustomerNodeInfoDTO> searchStatusText(KnowledgePushDTO knowledgePushDTO);

    List<BigInteger> searchStatusFile(KnowledgePushDTO knowledgePushDTO);

    String selectCustomecodeByOid(BigInteger oid);
}
